package com.study.listenter;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.AutoConfigurationImportEvent;
import org.springframework.boot.autoconfigure.AutoConfigurationImportListener;

/**
 * @Description TODO
 * @Author v_yangliu
 * @Date 2022/1/12 15:06
 * @Version 1.0
 **/
@Slf4j
public class SysoutAutoConfigurationImportListener implements AutoConfigurationImportListener {
    @Override
    public void onAutoConfigurationImportEvent(AutoConfigurationImportEvent event) {

        log.info("================output print registered configurations");
        for (String str : event.getCandidateConfigurations()) {
            log.info(">>> the configuration => " + str + " has registered ");
        }

        log.info("================output print exclusions configurations");
        for (String str : event.getExclusions()) {
            log.info(">>> the configuration =>" + str + " has exclusion ");
        }
    }
}
